<extend name="Public/base"/>
<block name="sidebar">

	<include file="plus-nav-top" />

</block>
<block name="body">


	<form class="well form-inline " method="get" action="{:U('')}">

		<div class="form-group">


			<input type="text" class="input J_date " name="starttime" value="{:I('get.starttime')}"
				   placeholder="开始时间">

			<input type="text" class="input J_date " name="endtime" value="{:I('get.endtime')}"
				   placeholder="结束时间">



		</div>



		<div class="form-group">
			<button class="btn btn-xs btn-info" data-toggle="tooltip" title="搜索">
				<i class="icon-search bigger-110"></i>


			</button>
			<input type="hidden" name="id" value="{:I('get.id')}">
			<if condition="$search">
				<a data-toggle="tooltip" title="清除搜索项" href="{:U('log')}"
				   class="tooltip-danger btn btn-xs btn-danger"><i class="icon-remove bigger-110"></i></a></if>
		</div>

	</form>


<if condition="I('get.type')">


	总票数{$tp_count};已取消关注票数{$qx_num}

	<else/>


	<form method="post" class="J_ajaxForm" action="{:U('listorders')}">
		<div class="table_list">
			<table width="100%" class="table table-striped table-bordered table-hover">
				<thead>
				<tr>
					<th width="50">序号</th>
					<th>经销商</th>
					<th>时间</th>

					<th>open_id</th>
					<th>uid</th>
					<th>会员卡</th>
					<th>电话</th>


				</tr>
				</thead>
				<tbody>

				<foreach name="list" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{:F("CardCat")[$vo['j_id']]["name"]}</td>

						<td>{$vo.inputtime|date="Y-m-d H:i:s",###}</td>

						<td><a data-trigger="modal" data-title="查看"  href='{:U("Index/wx_info",array("open_id"=>$vo["open_id"]))}'>{$vo.open_id}</a></td>

						<td>{$vo.uid}</td>
						<td>{$vo.card}</td>
						<td>{:substr_replace(get_username($vo["uid"]),'****',3,4)}</td>



					</tr>
				</foreach>
				</tbody>
			</table>
		</div>
		<div class="pagination" style="margin:auto; display:block">{$Page}</div>

	</form>


</if>



</block>
<block name="plugin-script"> 
  <script src="__JS__/content.js"></script> 

</block>

